package com.rabbitmq.demo.listener;

import com.rabbitmq.demo.conf.RoutingQueueConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 路由模式消费者1
 *
 * @Author yi.cheng
 * @Date 2023-7-13 09:24
 **/
@Slf4j
@Component
public class RoutingQueueConsumer1 {

    @RabbitListener(queues = RoutingQueueConfig.ROUTING_QUEUE_ONE)
    public void routingListen1(String msg) {
        log.info("路由模式消费者1 消费了：{}",msg);
    }

}
